﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Ruandao.Misc
{
    static public class XmlExtension
    {
        public static DynamicXmlNode AsDynamic(this XElement source)
        {
            return new DynamicXmlNode(source);
        }

        public static DynamicXmlNodeList AsDynamic(this IEnumerable<XElement> source)
        {
            return new DynamicXmlNodeList(source);
        }
    }

}
